package com.blb.zycommunity.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zycommunity.entity.SysArea;
import com.blb.zycommunity.entity.ZyBuilding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.zycommunity.entity.ZyCommunity;
import com.blb.zycommunity.entity.ZyRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 楼栋  Mapper 接口
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Mapper
public interface ZyBuildingMapper extends BaseMapper<ZyBuilding> {

    /**
     * 楼栋信息分页
     * @return
     */
    Page<ZyBuilding> selectBuildingPage(Page<ZyBuilding> page, String buildingName, String buildingCode);


    ZyBuilding selectZyBuildingById(String zyBuildingId);


    List<ZyBuilding> selectBuildingAndUnit();

    List<ZyBuilding> selectBuildingByCommunity(String communityId);
}
